package lhb.test.SC.zuul.filter;

import javax.servlet.http.HttpServletRequest;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;

import lhb.test.SC.common.util.PrintUtil;


public class PreFilter extends ZuulFilter{
	
	String noLogPath = "/uum/onNoLog";
	@Override
	public Object run() {
		RequestContext ctx = RequestContext.getCurrentContext();
		HttpServletRequest request = ctx.getRequest();
		PrintUtil.printRequestHeader(request);
		System.out.println("pre_url:"+request.getRequestURL());
		
		return null;
	}

	@Override
	public boolean shouldFilter() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public int filterOrder() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String filterType() {
		return "pre";
	}
	

}
